import 'package:flutterproject/generated/json/base/json_convert_content.dart';
import 'package:flutterproject/page/mine/children/order/children/order_detail/data/order_detail_bean.dart';

OrderDetailBean $OrderDetailBeanFromJson(Map<String, dynamic> json) {
	final OrderDetailBean orderDetailBean = OrderDetailBean();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		orderDetailBean.id = id;
	}
	final int? createTime = jsonConvert.convert<int>(json['createTime']);
	if (createTime != null) {
		orderDetailBean.createTime = createTime;
	}
	final String? orderNo = jsonConvert.convert<String>(json['orderNo']);
	if (orderNo != null) {
		orderDetailBean.orderNo = orderNo;
	}
	final String? totalAmount = jsonConvert.convert<String>(json['totalAmount']);
	if (totalAmount != null) {
		orderDetailBean.totalAmount = totalAmount;
	}
	final int? state = jsonConvert.convert<int>(json['state']);
	if (state != null) {
		orderDetailBean.state = state;
	}
	final int? productId = jsonConvert.convert<int>(json['productId']);
	if (productId != null) {
		orderDetailBean.productId = productId;
	}
	final String? productTag = jsonConvert.convert<String>(json['productTag']);
	if (productTag != null) {
		orderDetailBean.productTag = productTag;
	}
	final String? productName = jsonConvert.convert<String>(json['productName']);
	if (productName != null) {
		orderDetailBean.productName = productName;
	}
	final int? productNum = jsonConvert.convert<int>(json['productNum']);
	if (productNum != null) {
		orderDetailBean.productNum = productNum;
	}
	final String? productDescription = jsonConvert.convert<String>(json['productDescription']);
	if (productDescription != null) {
		orderDetailBean.productDescription = productDescription;
	}
	final int? payTime = jsonConvert.convert<int>(json['payTime']);
	if (payTime != null) {
		orderDetailBean.payTime = payTime;
	}
	final dynamic expressTime = jsonConvert.convert<dynamic>(json['expressTime']);
	if (expressTime != null) {
		orderDetailBean.expressTime = expressTime;
	}
	final dynamic finishTime = jsonConvert.convert<dynamic>(json['finishTime']);
	if (finishTime != null) {
		orderDetailBean.finishTime = finishTime;
	}
	final String? expressNo = jsonConvert.convert<String>(json['expressNo']);
	if (expressNo != null) {
		orderDetailBean.expressNo = expressNo;
	}
	final String? expressName = jsonConvert.convert<String>(json['expressName']);
	if (expressName != null) {
		orderDetailBean.expressName = expressName;
	}
	final String? recName = jsonConvert.convert<String>(json['recName']);
	if (recName != null) {
		orderDetailBean.recName = recName;
	}
	final String? recTel = jsonConvert.convert<String>(json['recTel']);
	if (recTel != null) {
		orderDetailBean.recTel = recTel;
	}
	final String? recAddrBase = jsonConvert.convert<String>(json['recAddrBase']);
	if (recAddrBase != null) {
		orderDetailBean.recAddrBase = recAddrBase;
	}
	final String? recAddrDetail = jsonConvert.convert<String>(json['recAddrDetail']);
	if (recAddrDetail != null) {
		orderDetailBean.recAddrDetail = recAddrDetail;
	}
	return orderDetailBean;
}

Map<String, dynamic> $OrderDetailBeanToJson(OrderDetailBean entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['createTime'] = entity.createTime;
	data['orderNo'] = entity.orderNo;
	data['totalAmount'] = entity.totalAmount;
	data['state'] = entity.state;
	data['productId'] = entity.productId;
	data['productTag'] = entity.productTag;
	data['productName'] = entity.productName;
	data['productNum'] = entity.productNum;
	data['productDescription'] = entity.productDescription;
	data['payTime'] = entity.payTime;
	data['expressTime'] = entity.expressTime;
	data['finishTime'] = entity.finishTime;
	data['expressNo'] = entity.expressNo;
	data['expressName'] = entity.expressName;
	data['recName'] = entity.recName;
	data['recTel'] = entity.recTel;
	data['recAddrBase'] = entity.recAddrBase;
	data['recAddrDetail'] = entity.recAddrDetail;
	return data;
}